Skip to main content

AbsOperator

Type

operator

Summary

Absolute value operator.

Syntax

the abs of <Operand>

Description

The absolute value of Operand is the value of Operand if it is greater than or equal to 0, or the negation of the value of Operand if it is less than zero.

Parameters

NameTypeDescription

Operand

An expression that evaluates to a number.

Examples

variable tVar as Number
put the trunc of 3.9 into tVar -- tVar contains 3
Thank you for your feedback!

Was this page helpful?